<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@page import="org.jbpm.api.*,org.jbpm.api.task.*"%>
<%
	ProcessEngine processEngine = Configuration.getProcessEngine();
	TaskService taskService = processEngine.getTaskService();
	String taskId = request.getParameter("id");
	Task task = taskService.getTask(taskId);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>请假条审核</title>
	</head>
	<body>
		<fieldset>
			<legend>
				请假审核
			</legend>
			<form action="leave?action=sh" method="post">
				<input type="hidden" name="taskId"
					value="<%=request.getParameter("id")%>">
				申请人：<%=taskService.getVariable(taskId, "user")%><br />
				请假时间：<%=taskService.getVariable(taskId, "days")%><br />
				请假原因：<%=taskService.getVariable(taskId, "reason")%><br />
				<input name="result" type="submit" value="批准" />
				<input name="result" type="submit" value="驳回" />
			</form>
		</fieldset>

	</body>
</html>